import java.io.File;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.Arrays;

public class IOTest {
    public static void main(String[] args) throws IOException {
        //静态方法
        System.out.println(File.separator);
        System.out.println(File.pathSeparatorChar);
        File file = new File("E:\\Program Files (x86)");
        File file1 = new File(file,"\\WeChat\\WeChat.exe");
        File file2 = new File("E:\\Program Files (x86)","\\WeChat\\WeChat.exe");
        File file0 = new File("D:\\JAVA_Test");
        File file3 = new File("D:\\JAVA\\Test");
        System.out.println(file1.getParent());
        System.out.println(file2.getParent());
        System.out.println(file2.getName());
        System.out.println(file2.getPath());
        System.out.println(file2.getAbsolutePath());
        System.out.println(file2.getCanonicalPath());
        System.out.println(file2.exists());
        System.out.println(file2.isDirectory());
        System.out.println(file2.isFile());
        System.out.println(file0.createNewFile());
        //System.out.println(file0.delete());
        //String[] list = file3.list();
        //System.out.println(Arrays.toString(list));
        System.out.println(file3.mkdir());

    }
}
